<script setup>
import GameMap from "../components/GameMap.vue"
import {onMounted, onUnmounted, ref, watch} from "vue";

onMounted(() => {
  console.log("IndexView加载")
})

onUnmounted(() => {
  console.log("IndexView卸载")
})

const occur = ref(true)

</script>

<template>
  <div class="playground">
    <GameMap v-if="occur" class="game-map-com"/>
  </div>
</template>

<style scoped>
.playground {
  width: 60vw;
  height: 70vh;
  margin: 40px auto;
}
</style>